package com.lin.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class LogService {
    private static final Logger logger = LoggerFactory.getLogger(LogService.class);

    public void logMovieOperation(String operation, String movieName, int userId) {
        String message = String.format("User %d performed %s on movie %s", userId, operation, movieName);
        logger.info(message);
    }
}